﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="DataSetSQLAgentJobResults" targetNamespace="http://tempuri.org/DataSetSQLAgentJobResults.xsd" xmlns:mstns="http://tempuri.org/DataSetSQLAgentJobResults.xsd" xmlns="http://tempuri.org/DataSetSQLAgentJobResults.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="1" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection ConnectionStringObject="Data Source=SEREENA-PC\SEREENASQL2008;Initial Catalog=master;Integrated Security=True" IsAppSettingsProperty="false" Modifier="Assembly" Name="sereena-pc\sereenasql2008.master.dbo" ParameterPrefix="@" Provider="System.Data.SqlClient" />
          <Connection ConnectionStringObject="Data Source=SEREENA-PC\SEREENASQL2008,2133;Initial Catalog=SQLServerHealthCheckDeploy;Integrated Security=True;Pooling=False" IsAppSettingsProperty="false" Modifier="Assembly" Name="sereena-pc\sereenasql2008.SQLServerHealthCheckDeploy.dbo" ParameterPrefix="@" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="TableAdapterSQLAgentJobDetails" GeneratorDataComponentClassName="TableAdapterSQLAgentJobDetails" Name="DataTableSQLAgentJobDetails" UserDataComponentName="TableAdapterSQLAgentJobDetails">
            <MainSource>
              <DbSource ConnectionRef="sereena-pc\sereenasql2008.SQLServerHealthCheckDeploy.dbo" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        [dbo].[Server].[Name] AS [Server],  [dbo].[Service].[Name] AS [Instance],
[dbo].[SQLAgentJobDetails].JobName as JobName,[dbo].[SQLAgentJobDetails].[Enabled] as [Enabled],
[dbo].[SQLAgentJobDetails].[LastRunStatus] as [LastRunStatus],
[dbo].[SQLAgentJobDetails].[Category] as [Category],
[dbo].[SQLAgentJobDetails].[LastRunDateTime] as [LastRunDateTime],
[dbo].[SQLAgentJobDetails].[Duration] as [Duration]

FROM     [dbo].[SQLAgentJobDetails]       inner join [dbo].[Service] 
on  [dbo].[SQLAgentJobDetails].[ServiceID]= [dbo].[Service].[ServiceID] 
inner join   [dbo].[Server] on  [dbo].[Server] .[ServerID] = [dbo].[Service].[ServerID]
                         
</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="Server" DataSetColumn="Server" />
              <Mapping SourceColumn="Instance" DataSetColumn="Instance" />
              <Mapping SourceColumn="JobName" DataSetColumn="JobName" />
              <Mapping SourceColumn="Enabled" DataSetColumn="Enabled" />
              <Mapping SourceColumn="LastRunStatus" DataSetColumn="LastRunStatus" />
              <Mapping SourceColumn="Category" DataSetColumn="Category" />
              <Mapping SourceColumn="LastRunDateTime" DataSetColumn="LastRunDateTime" />
              <Mapping SourceColumn="Duration" DataSetColumn="Duration" />
            </Mappings>
            <Sources />
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="DataSetSQLAgentJobResults" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="DataSetSQLAgentJobResults" msprop:Generator_UserDSName="DataSetSQLAgentJobResults">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="DataTableSQLAgentJobDetails" msprop:Generator_TableClassName="DataTableSQLAgentJobDetailsDataTable" msprop:Generator_TableVarName="tableDataTableSQLAgentJobDetails" msprop:Generator_TablePropName="DataTableSQLAgentJobDetails" msprop:Generator_RowDeletingName="DataTableSQLAgentJobDetailsRowDeleting" msprop:Generator_UserTableName="DataTableSQLAgentJobDetails" msprop:Generator_RowChangingName="DataTableSQLAgentJobDetailsRowChanging" msprop:Generator_RowEvHandlerName="DataTableSQLAgentJobDetailsRowChangeEventHandler" msprop:Generator_RowDeletedName="DataTableSQLAgentJobDetailsRowDeleted" msprop:Generator_RowEvArgName="DataTableSQLAgentJobDetailsRowChangeEvent" msprop:Generator_RowChangedName="DataTableSQLAgentJobDetailsRowChanged" msprop:Generator_RowClassName="DataTableSQLAgentJobDetailsRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Server" msprop:Generator_ColumnVarNameInTable="columnServer" msprop:Generator_ColumnPropNameInRow="Server" msprop:Generator_ColumnPropNameInTable="ServerColumn" msprop:Generator_UserColumnName="Server" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Instance" msprop:Generator_ColumnVarNameInTable="columnInstance" msprop:Generator_ColumnPropNameInRow="Instance" msprop:Generator_ColumnPropNameInTable="InstanceColumn" msprop:Generator_UserColumnName="Instance" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="JobName" msprop:Generator_ColumnVarNameInTable="columnJobName" msprop:Generator_ColumnPropNameInRow="JobName" msprop:Generator_ColumnPropNameInTable="JobNameColumn" msprop:Generator_UserColumnName="JobName">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Enabled" msprop:Generator_ColumnVarNameInTable="columnEnabled" msprop:Generator_ColumnPropNameInRow="Enabled" msprop:Generator_ColumnPropNameInTable="EnabledColumn" msprop:Generator_UserColumnName="Enabled" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="LastRunStatus" msprop:Generator_ColumnVarNameInTable="columnLastRunStatus" msprop:Generator_ColumnPropNameInRow="LastRunStatus" msprop:Generator_ColumnPropNameInTable="LastRunStatusColumn" msprop:Generator_UserColumnName="LastRunStatus" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="20" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Category" msprop:Generator_ColumnVarNameInTable="columnCategory" msprop:Generator_ColumnPropNameInRow="Category" msprop:Generator_ColumnPropNameInTable="CategoryColumn" msprop:Generator_UserColumnName="Category" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="LastRunDateTime" msprop:Generator_ColumnVarNameInTable="columnLastRunDateTime" msprop:Generator_ColumnPropNameInRow="LastRunDateTime" msprop:Generator_ColumnPropNameInTable="LastRunDateTimeColumn" msprop:Generator_UserColumnName="LastRunDateTime" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Duration" msprop:Generator_ColumnVarNameInTable="columnDuration" msprop:Generator_ColumnPropNameInRow="Duration" msprop:Generator_ColumnPropNameInTable="DurationColumn" msprop:Generator_UserColumnName="Duration" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
  </xs:element>
</xs:schema>